﻿using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.下单MTO.Service;
using DXApplicationTangche.UC.款式异常;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.UC.门店下单.DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXApplicationTangche.DTO
{
    public class 订单导出DTO
    {
        public String ORDER_ID { get; set; } // 订单ID
        public String ORDER_NO { get; set; } // 订单号
        public String ORDER_NUMBER { get; set; } // 订单数量
        public String wipQuantity { get; set; } // 订单数量

        public String ORDER_DATE { get; set; } // 订单日期
        public String CUSTOM_NAME { get; set; } // 客户名称
        public String SHOP_NAME { get; set; } // 店名
        public String ORDER_DUE_DATE { get; set; }//交期
        public String ORDER_SHIPMENTS_DATE { get; set; } // 船期
        public String STYLE_ID { get; set; } // 款号 
        public String STYLE_NAME_CN { get; set; } // 款式
        public String STYLE_MAKE_TYPE { get; set; } // 缝制方式
        public String Style_FIT_CD { get; set; } // 版型
        public String MATERIAL_CODE { get; set; } // 面料品号
        public String MATERIAL_SPEC { get; set; } // 幅宽
        public String MATERIAL_STITCH { get; set; } // 面料针码
        public String MATERIAL_STYLE { get; set; } // 物料风格
        public String MATERIAL_WEAVE { get; set; }//物料织法
        public String MATERIAL_NAME_CN { get; set; }//物料描述名称
        public String STYLE_SIZE_CD { get; set; }   //  尺码
        public String REMARKS { get; set; } //  备注
        public String refOrderNo { get; set; } //返单号
        public Image picture { get; set; }
        public Image picture款式 { get; set; }//款式图片
        public Image picture面料 { get; set; }//面料图片
        public String batchNo { get; set; } //批次批号
        public String urgentFlg { get; set; } //是否加急
        public String urgentFlgName { get; set; } //加急与正常
        public String salesType { get; set; } //销售方式
        public String salesChannel { get; set; } //销售渠道
        public String kashiyamaOrderNo { get; set; } //
        public String storeName { get; set; } //销售组织
        public String assistantName { get; set; } //销售员

        #region 量体值组
        public String 量体项目0 { get; set; }
        public String 量体项目1 { get; set; }
        public String 量体项目2 { get; set; }
        public String 量体项目3 { get; set; }
        public String 量体项目4 { get; set; }
        public String 量体项目5 { get; set; }
        public String 量体项目6 { get; set; }
        public String 量体项目7 { get; set; }
        public String 量体项目8 { get; set; }
        public String 量体项目9 { get; set; }
        public String 量体项目10 { get; set; }
        public String 量体项目11 { get; set; }
        public String 量体项目12 { get; set; }
        public String 量体项目13 { get; set; }
        public String 量体项目14 { get; set; }
        public String 量体项目15 { get; set; }
        public String 量体项目16 { get; set; }
        public String 量体项目17 { get; set; }
        public String 量体项目18 { get; set; }
        public String 量体项目19 { get; set; }
        public String 量体项目20 { get; set; }
        public String 量体项目21 { get; set; }
        public String 量体项目22 { get; set; }
        public String 量体项目23 { get; set; }
        public String 量体项目24 { get; set; }
        public String 量体项目25 { get; set; }
        public String 量体项目26 { get; set; }
        public String 量体项目27 { get; set; }
        public String 量体项目28 { get; set; }
        public String 量体项目29 { get; set; }
        public String 量体项目30 { get; set; }
        public String 量体项目31 { get; set; }
        public String 量体项目32 { get; set; }
        public String 量体项目33 { get; set; }
        public String 标准尺寸0 { get; set; }
        public String 标准尺寸1 { get; set; }
        public String 标准尺寸2 { get; set; }
        public String 标准尺寸3 { get; set; }
        public String 标准尺寸4 { get; set; }
        public String 标准尺寸5 { get; set; }
        public String 标准尺寸6 { get; set; }
        public String 标准尺寸7 { get; set; }
        public String 标准尺寸8 { get; set; }
        public String 标准尺寸9 { get; set; }
        public String 标准尺寸10 { get; set; }
        public String 标准尺寸11 { get; set; }
        public String 标准尺寸12 { get; set; }
        public String 标准尺寸13 { get; set; }
        public String 标准尺寸14 { get; set; }
        public String 标准尺寸15 { get; set; }
        public String 标准尺寸16 { get; set; }
        public String 标准尺寸17 { get; set; }
        public String 标准尺寸18 { get; set; }
        public String 标准尺寸19 { get; set; }
        public String 标准尺寸20 { get; set; }
        public String 标准尺寸21 { get; set; }
        public String 标准尺寸22 { get; set; }
        public String 标准尺寸23 { get; set; }
        public String 标准尺寸24 { get; set; }
        public String 标准尺寸25 { get; set; }
        public String 标准尺寸26 { get; set; }
        public String 标准尺寸27 { get; set; }
        public String 标准尺寸28 { get; set; }
        public String 标准尺寸29 { get; set; }
        public String 标准尺寸30 { get; set; }
        public String 标准尺寸31 { get; set; }
        public String 标准尺寸32 { get; set; }
        public String 标准尺寸33 { get; set; }
        public String 成衣尺寸0 { get; set; }
        public String 成衣尺寸1 { get; set; }
        public String 成衣尺寸2 { get; set; }
        public String 成衣尺寸3 { get; set; }
        public String 成衣尺寸4 { get; set; }
        public String 成衣尺寸5 { get; set; }
        public String 成衣尺寸6 { get; set; }
        public String 成衣尺寸7 { get; set; }
        public String 成衣尺寸8 { get; set; }
        public String 成衣尺寸9 { get; set; }
        public String 成衣尺寸10 { get; set; }
        public String 成衣尺寸11 { get; set; }
        public String 成衣尺寸12 { get; set; }
        public String 成衣尺寸13 { get; set; }
        public String 成衣尺寸14 { get; set; }
        public String 成衣尺寸15 { get; set; }
        public String 成衣尺寸16 { get; set; }
        public String 成衣尺寸17 { get; set; }
        public String 成衣尺寸18 { get; set; }
        public String 成衣尺寸19 { get; set; }
        public String 成衣尺寸20 { get; set; }
        public String 成衣尺寸21 { get; set; }
        public String 成衣尺寸22 { get; set; }
        public String 成衣尺寸23 { get; set; }
        public String 成衣尺寸24 { get; set; }
        public String 成衣尺寸25 { get; set; }
        public String 成衣尺寸26 { get; set; }
        public String 成衣尺寸27 { get; set; }
        public String 成衣尺寸28 { get; set; }
        public String 成衣尺寸29 { get; set; }
        public String 成衣尺寸30 { get; set; }
        public String 成衣尺寸31 { get; set; }
        public String 成衣尺寸32 { get; set; }
        public String 成衣尺寸33 { get; set; }
        public String 客户量体值0 { get; set; }
        public String 客户量体值1 { get; set; }
        public String 客户量体值2 { get; set; }
        public String 客户量体值3 { get; set; }
        public String 客户量体值4 { get; set; }
        public String 客户量体值5 { get; set; }
        public String 客户量体值6 { get; set; }
        public String 客户量体值7 { get; set; }
        public String 客户量体值8 { get; set; }
        public String 客户量体值9 { get; set; }
        public String 客户量体值10 { get; set; }
        public String 客户量体值11 { get; set; }
        public String 客户量体值12 { get; set; }
        public String 客户量体值13 { get; set; }
        public String 客户量体值14 { get; set; }
        public String 客户量体值15 { get; set; }
        public String 客户量体值16 { get; set; }
        public String 客户量体值17 { get; set; }
        public String 客户量体值18 { get; set; }
        public String 客户量体值19 { get; set; }
        public String 客户量体值20 { get; set; }
        public String 客户量体值21 { get; set; }
        public String 客户量体值22 { get; set; }
        public String 客户量体值23 { get; set; }
        public String 客户量体值24 { get; set; }
        public String 客户量体值25 { get; set; }
        public String 客户量体值26 { get; set; }
        public String 客户量体值27 { get; set; }
        public String 客户量体值28 { get; set; }
        public String 客户量体值29 { get; set; }
        public String 客户量体值30 { get; set; }
        public String 客户量体值31 { get; set; }
        public String 客户量体值32 { get; set; }
        public String 客户量体值33 { get; set; }
        public String 加减值0 { get; set; }
        public String 加减值1 { get; set; }
        public String 加减值2 { get; set; }
        public String 加减值3 { get; set; }
        public String 加减值4 { get; set; }
        public String 加减值5 { get; set; }
        public String 加减值6 { get; set; }
        public String 加减值7 { get; set; }
        public String 加减值8 { get; set; }
        public String 加减值9 { get; set; }
        public String 加减值10 { get; set; }
        public String 加减值11 { get; set; }
        public String 加减值12 { get; set; }
        public String 加减值13 { get; set; }
        public String 加减值14 { get; set; }
        public String 加减值15 { get; set; }
        public String 加减值16 { get; set; }
        public String 加减值17 { get; set; }
        public String 加减值18 { get; set; }
        public String 加减值19 { get; set; }
        public String 加减值20 { get; set; }
        public String 加减值21 { get; set; }
        public String 加减值22 { get; set; }
        public String 加减值23 { get; set; }
        public String 加减值24 { get; set; }
        public String 加减值25 { get; set; }
        public String 加减值26 { get; set; }
        public String 加减值27 { get; set; }
        public String 加减值28 { get; set; }
        public String 加减值29 { get; set; }
        public String 加减值30 { get; set; }
        public String 加减值31 { get; set; }
        public String 加减值32 { get; set; }
        public String 加减值33 { get; set; }
        #endregion

        #region 设计点
        public String 设计项目0 { get; set; }
        public String 设计项目1 { get; set; }
        public String 设计项目2 { get; set; }
        public String 设计项目3 { get; set; }
        public String 设计项目4 { get; set; }
        public String 设计项目5 { get; set; }
        public String 设计项目6 { get; set; }
        public String 设计项目7 { get; set; }
        public String 设计项目8 { get; set; }
        public String 设计项目9 { get; set; }
        public String 设计项目10 { get; set; }
        public String 设计项目11 { get; set; }
        public String 设计项目12 { get; set; }
        public String 设计项目13 { get; set; }
        public String 设计项目14 { get; set; }
        public String 设计项目15 { get; set; }
        public String 设计项目16 { get; set; }
        public String 设计项目17 { get; set; }
        public String 设计项目18 { get; set; }
        public String 设计项目19 { get; set; }
        public String 设计项目20 { get; set; }
        public String 设计项目21 { get; set; }
        public String 设计项目22 { get; set; }
        public String 设计项目23 { get; set; }
        public String 设计项目24 { get; set; }
        public String 设计项目25 { get; set; }
        public String 设计项目26 { get; set; }
        public String 设计项目27 { get; set; }
        public String 设计项目28 { get; set; }
        public String 设计项目29 { get; set; }
        public String 设计项目30 { get; set; }
        public String 设计项目31 { get; set; }
        public String 设计项目32 { get; set; }
        public String 设计项目33 { get; set; }
        public String 设计项目34 { get; set; }
        public String 设计内容0 { get; set; }
        public String 设计内容1 { get; set; }
        public String 设计内容2 { get; set; }
        public String 设计内容3 { get; set; }
        public String 设计内容4 { get; set; }
        public String 设计内容5 { get; set; }
        public String 设计内容6 { get; set; }
        public String 设计内容7 { get; set; }
        public String 设计内容8 { get; set; }
        public String 设计内容9 { get; set; }
        public String 设计内容10 { get; set; }
        public String 设计内容11 { get; set; }
        public String 设计内容12 { get; set; }
        public String 设计内容13 { get; set; }
        public String 设计内容14 { get; set; }
        public String 设计内容15 { get; set; }
        public String 设计内容16 { get; set; }
        public String 设计内容17 { get; set; }
        public String 设计内容18 { get; set; }
        public String 设计内容19 { get; set; }
        public String 设计内容20 { get; set; }
        public String 设计内容21 { get; set; }
        public String 设计内容22 { get; set; }
        public String 设计内容23 { get; set; }
        public String 设计内容24 { get; set; }
        public String 设计内容25 { get; set; }
        public String 设计内容26 { get; set; }
        public String 设计内容27 { get; set; }
        public String 设计内容28 { get; set; }
        public String 设计内容29 { get; set; }
        public String 设计内容30 { get; set; }
        public String 设计内容31 { get; set; }
        public String 设计内容32 { get; set; }
        public String 设计内容33 { get; set; }
        public String 设计内容34 { get; set; }
        #endregion

        #region 客户体态
        public String 性别 { get; set; }
        public String 年龄 { get; set; }
        public String 身高 { get; set; }
        public String 体重 { get; set; }
        public String 肩型 { get; set; }
        public String 体型 { get; set; }
        public String 背型 { get; set; }
        public String 腹型 { get; set; }
        #endregion

        #region 客户体态新
        public String 体态0 { get; set; }
        public String 体态1 { get; set; }
        public String 体态2 { get; set; }
        public String 体态3 { get; set; }
        public String 体态4 { get; set; }
        public String 体态5 { get; set; }
        public String 体态6 { get; set; }
        public String 体态7 { get; set; }
        public String 体态值0 { get; set; }
        public String 体态值1 { get; set; }
        public String 体态值2 { get; set; }
        public String 体态值3 { get; set; }
        public String 体态值4 { get; set; }
        public String 体态值5 { get; set; }
        public String 体态值6 { get; set; }
        public String 体态值7 { get; set; }
        #endregion

        public 订单导出DTO(DataRow dataRow订单, DataRow dataRow款式, DataRow dataRow面料, List<尺寸呈现dto> 尺寸呈现, List<DTODesignPoints> Dto设计点s, DTO客户体态 dto客户体态, Image pic) {
            this.ORDER_ID = dataRow订单["ORDER_ID"].ToString();
            this.ORDER_NO = dataRow订单["ORDER_NO"].ToString();
            this.ORDER_NUMBER = dataRow订单["ORDER_NUMBER"].ToString();
            this.ORDER_DATE = dataRow订单["ORDER_DATE"].ToString();
            this.CUSTOM_NAME = dataRow订单["CUSTOM_NAME"].ToString();
            this.SHOP_NAME = dataRow订单["SHOP_NAME"].ToString();
            this.ORDER_DUE_DATE = dataRow订单["ORDER_DUE_DATE"].ToString();
            this.ORDER_SHIPMENTS_DATE = dataRow订单["ORDER_SHIPMENTS_DATE"].ToString();
            this.STYLE_ID = dataRow订单["STYLE_ID"].ToString();
            this.REMARKS = dataRow订单["REMARKS"].ToString();

            this.STYLE_NAME_CN = dataRow款式["STYLE_NAME_CN"].ToString();
            this.STYLE_MAKE_TYPE = dataRow款式["MAKE_TYPE"].ToString();
            this.Style_FIT_CD = dataRow款式["Style_FIT_CD"].ToString();
            this.MATERIAL_CODE = dataRow面料["MATERIAL_CODE"].ToString();
            this.MATERIAL_SPEC = dataRow面料["MATERIAL_SPEC"].ToString();
            this.MATERIAL_STITCH = dataRow面料["MATERIAL_STITCH"].ToString();
            this.MATERIAL_STYLE = dataRow面料["MATERIAL_STYLE"].ToString();
            this.MATERIAL_NAME_CN = dataRow面料["MATERIAL_NAME_CN"].ToString();
            String WEAVE = "";
            String STYLE = "";
            if (dataRow面料["MATERIAL_WEAVE"].ToString() != String.Empty)
            {
                WEAVE = dataRow面料["WEAVE"].ToString();
            }
            if (dataRow面料["MATERIAL_STYLE"].ToString() != String.Empty)
            {
                STYLE = dataRow面料["STYLE"].ToString();
            }
            this.MATERIAL_WEAVE = STYLE + "/" + WEAVE;
            this.picture面料 = pic;

            this.STYLE_SIZE_CD =
                dataRow款式["STYLE_SIZE_GROUP_CD"].ToString()
                + "/"
                + dataRow款式["STYLE_SIZE_CD"].ToString().Replace("IGS_GROUP_SIZE-", "").Replace("EGS_GROUP_SIZE-", "");

            this.build设计点(Dto设计点s);
            this.build尺寸(尺寸呈现);
            this.build客户体态(dto客户体态);
        }

        private void build设计点(List<DTODesignPoints> Dto设计点input) {
            List<DTODesignPoints> Dto设计点s = new List<DTODesignPoints>();
            foreach (DTODesignPoints DTODesignPoints in Dto设计点input) {
                if (
                    !String.IsNullOrEmpty(DTODesignPoints.itemValue) &&
                    !"4SMP".Equals(DTODesignPoints.itemValue) &&
                    !"4SMS".Equals(DTODesignPoints.itemValue) &&
                    !"4SMO".Equals(DTODesignPoints.itemValue) &&
                    !"4SMC".Equals(DTODesignPoints.itemValue) &&
                    !"4SMT".Equals(DTODesignPoints.itemValue)
                    ) {
                    Dto设计点s.Add(DTODesignPoints);
                }
                if (
                    "4SMP".Equals(DTODesignPoints.itemValue) ||
                    "4SMS".Equals(DTODesignPoints.itemValue) ||
                    "4SMO".Equals(DTODesignPoints.itemValue) ||
                    "4SMC".Equals(DTODesignPoints.itemValue)
                    ) {
                    this.REMARKS += "|" + DTODesignPoints.itemTypeNameCn + ":" + DTODesignPoints.name;
                }
            }
            try
            {
                this.设计项目0 = Dto设计点s[0].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[0].name))
                {
                    if (String.IsNullOrEmpty(Dto设计点s[0].optionValue))
                    {

                    }
                    this.设计内容0 = Dto设计点s[0].optionValue;
                }
                else
                {
                    this.设计内容0 = Dto设计点s[0].optionValue + ":" + Dto设计点s[0].name;
                }
            }
            catch { }
            try
            {
                this.设计项目1 = Dto设计点s[1].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[1].name))
                {
                    this.设计内容1 = Dto设计点s[1].optionValue;
                }
                else
                {
                    this.设计内容1 = Dto设计点s[1].optionValue + ":" + Dto设计点s[1].name;
                }
            }
            catch { }
            try
            {
                this.设计项目2 = Dto设计点s[2].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[2].name))
                {
                    this.设计内容2 = Dto设计点s[2].optionValue;
                }
                else
                {
                    this.设计内容2 = Dto设计点s[2].optionValue + ":" + Dto设计点s[2].name;
                }
            }
            catch { }
            try
            {
                this.设计项目3 = Dto设计点s[3].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[3].name))
                {
                    this.设计内容3 = Dto设计点s[3].optionValue;
                }
                else
                {
                    this.设计内容3 = Dto设计点s[3].optionValue + ":" + Dto设计点s[3].name;
                }
            }
            catch { }
            try
            {
                this.设计项目4 = Dto设计点s[4].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[4].name))
                {
                    this.设计内容4 = Dto设计点s[4].optionValue;
                }
                else
                {
                    this.设计内容4 = Dto设计点s[4].optionValue + ":" + Dto设计点s[4].name;
                }
            }
            catch { }
            try
            {
                this.设计项目5 = Dto设计点s[5].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[5].name))
                {
                    this.设计内容5 = Dto设计点s[5].optionValue;
                }
                else
                {
                    this.设计内容5 = Dto设计点s[5].optionValue + ":" + Dto设计点s[5].name;
                }
            }
            catch { }
            try
            {
                this.设计项目6 = Dto设计点s[6].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[6].name))
                {
                    this.设计内容6 = Dto设计点s[6].optionValue;
                }
                else
                {
                    this.设计内容6 = Dto设计点s[6].optionValue + ":" + Dto设计点s[6].name;
                }
            }
            catch { }
            try
            {
                this.设计项目7 = Dto设计点s[7].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[7].name))
                {
                    this.设计内容7 = Dto设计点s[7].optionValue;
                }
                else
                {
                    this.设计内容7 = Dto设计点s[7].optionValue + ":" + Dto设计点s[7].name;
                }
            }
            catch { }
            try
            {
                this.设计项目8 = Dto设计点s[8].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[8].name))
                {
                    this.设计内容8 = Dto设计点s[8].optionValue;
                }
                else
                {
                    this.设计内容8 = Dto设计点s[8].optionValue + ":" + Dto设计点s[8].name;
                }
            }
            catch { }
            try
            {
                this.设计项目9 = Dto设计点s[9].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[9].name))
                {
                    this.设计内容9 = Dto设计点s[9].optionValue;
                }
                else
                {
                    this.设计内容9 = Dto设计点s[9].optionValue + ":" + Dto设计点s[9].name;
                }
            }
            catch { }
            try
            {
                this.设计项目10 = Dto设计点s[10].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[10].name))
                {
                    this.设计内容10 = Dto设计点s[10].optionValue;
                }
                else
                {
                    this.设计内容10 = Dto设计点s[10].optionValue + ":" + Dto设计点s[10].name;
                }
            }
            catch { }
            try
            {
                this.设计项目11 = Dto设计点s[11].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[11].name))
                {
                    this.设计内容11 = Dto设计点s[11].optionValue;
                }
                else
                {
                    this.设计内容11 = Dto设计点s[11].optionValue + ":" + Dto设计点s[11].name;
                }
            }
            catch { }
            try
            {
                this.设计项目12 = Dto设计点s[12].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[12].name))
                {
                    this.设计内容12 = Dto设计点s[12].optionValue;
                }
                else
                {
                    this.设计内容12 = Dto设计点s[12].optionValue + ":" + Dto设计点s[12].name;
                }
            }
            catch { }
            try
            {
                this.设计项目13 = Dto设计点s[13].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[13].name))
                {
                    this.设计内容13 = Dto设计点s[13].optionValue;
                }
                else
                {
                    this.设计内容13 = Dto设计点s[13].optionValue + ":" + Dto设计点s[13].name;
                }
            }
            catch { }
            try
            {
                this.设计项目14 = Dto设计点s[14].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[14].name))
                {
                    this.设计内容14 = Dto设计点s[14].optionValue;
                }
                else
                {
                    this.设计内容14 = Dto设计点s[14].optionValue + ":" + Dto设计点s[14].name;
                }
            }
            catch { }
            try
            {
                this.设计项目15 = Dto设计点s[15].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[15].name))
                {
                    this.设计内容15 = Dto设计点s[15].optionValue;
                }
                else
                {
                    this.设计内容15 = Dto设计点s[15].optionValue + ":" + Dto设计点s[15].name;
                }
            }
            catch { }
            try
            {
                this.设计项目16 = Dto设计点s[16].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[16].name))
                {
                    this.设计内容16 = Dto设计点s[16].optionValue;
                }
                else
                {
                    this.设计内容16 = Dto设计点s[16].optionValue + ":" + Dto设计点s[16].name;
                }
            }
            catch { }
            try
            {
                this.设计项目17 = Dto设计点s[17].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[17].name))
                {
                    this.设计内容17 = Dto设计点s[17].optionValue;
                }
                else
                {
                    this.设计内容17 = Dto设计点s[17].optionValue + ":" + Dto设计点s[17].name;
                }
            }
            catch { }
            try
            {
                this.设计项目18 = Dto设计点s[18].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[18].name))
                {
                    this.设计内容18 = Dto设计点s[18].optionValue;
                }
                else
                {
                    this.设计内容18 = Dto设计点s[18].optionValue + ":" + Dto设计点s[18].name;
                }
            }
            catch { }
            try
            {
                this.设计项目19 = Dto设计点s[19].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[19].name))
                {
                    this.设计内容19 = Dto设计点s[19].optionValue;
                }
                else
                {
                    this.设计内容19 = Dto设计点s[19].optionValue + ":" + Dto设计点s[19].name;
                }
            }
            catch { }
            try
            {
                this.设计项目20 = Dto设计点s[20].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[20].name))
                {
                    this.设计内容20 = Dto设计点s[20].optionValue;
                }
                else
                {
                    this.设计内容20 = Dto设计点s[20].optionValue + ":" + Dto设计点s[20].name;
                }
            }
            catch { }
            try
            {
                this.设计项目21 = Dto设计点s[21].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[21].name))
                {
                    this.设计内容21 = Dto设计点s[21].optionValue;
                }
                else
                {
                    this.设计内容21 = Dto设计点s[21].optionValue + ":" + Dto设计点s[21].name;
                }
            }
            catch { }
            try
            {
                this.设计项目22 = Dto设计点s[22].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[22].name))
                {
                    this.设计内容22 = Dto设计点s[22].optionValue;
                }
                else
                {
                    this.设计内容22 = Dto设计点s[22].optionValue + ":" + Dto设计点s[22].name;
                }
            }
            catch { }
            try
            {
                this.设计项目23 = Dto设计点s[23].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[23].name))
                {
                    this.设计内容23 = Dto设计点s[23].optionValue;
                }
                else
                {
                    this.设计内容23 = Dto设计点s[23].optionValue + ":" + Dto设计点s[23].name;
                }
            }
            catch { }
            try
            {
                this.设计项目24 = Dto设计点s[24].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[24].name))
                {
                    this.设计内容24 = Dto设计点s[24].optionValue;
                }
                else
                {
                    this.设计内容24 = Dto设计点s[24].optionValue + ":" + Dto设计点s[24].name;
                }
            }
            catch { }
            try
            {
                this.设计项目25 = Dto设计点s[25].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[25].name))
                {
                    this.设计内容25 = Dto设计点s[25].optionValue;
                }
                else
                {
                    this.设计内容25 = Dto设计点s[25].optionValue + ":" + Dto设计点s[25].name;
                }
            }
            catch { }
            try
            {
                this.设计项目26 = Dto设计点s[26].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[26].name))
                {
                    this.设计内容26 = Dto设计点s[26].optionValue;
                }
                else
                {
                    this.设计内容26 = Dto设计点s[26].optionValue + ":" + Dto设计点s[26].name;
                }
            }
            catch { }
            try
            {
                this.设计项目27 = Dto设计点s[27].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[27].name))
                {
                    this.设计内容27 = Dto设计点s[27].optionValue;
                }
                else
                {
                    this.设计内容27 = Dto设计点s[27].optionValue + ":" + Dto设计点s[27].name;
                }
            }
            catch { }
            try
            {
                this.设计项目28 = Dto设计点s[28].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[28].name))
                {
                    this.设计内容28 = Dto设计点s[28].optionValue;
                }
                else
                {
                    this.设计内容28 = Dto设计点s[28].optionValue + ":" + Dto设计点s[28].name;
                }
            }
            catch { }
            try
            {
                this.设计项目29 = Dto设计点s[29].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[29].name))
                {
                    this.设计内容29 = Dto设计点s[29].optionValue;
                }
                else
                {
                    this.设计内容29 = Dto设计点s[29].optionValue + ":" + Dto设计点s[29].name;
                }
            }
            catch { }
            try
            {
                this.设计项目30 = Dto设计点s[30].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[30].name))
                {
                    this.设计内容30 = Dto设计点s[30].optionValue;
                }
                else
                {
                    this.设计内容30 = Dto设计点s[30].optionValue + ":" + Dto设计点s[30].name;
                }
            }
            catch { }
            try
            {
                this.设计项目31 = Dto设计点s[31].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[31].name))
                {
                    this.设计内容31 = Dto设计点s[31].optionValue;
                }
                else
                {
                    this.设计内容31 = Dto设计点s[31].optionValue + ":" + Dto设计点s[31].name;
                }
            }
            catch { }
            try
            {
                this.设计项目32 = Dto设计点s[32].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[32].name))
                {
                    this.设计内容32 = Dto设计点s[32].optionValue;
                }
                else
                {
                    this.设计内容32 = Dto设计点s[32].optionValue + ":" + Dto设计点s[32].name;
                }
            }
            catch { }
            try
            {
                this.设计项目33 = Dto设计点s[33].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[33].name))
                {
                    this.设计内容33 = Dto设计点s[33].optionValue;
                }
                else
                {
                    this.设计内容33 = Dto设计点s[33].optionValue + ":" + Dto设计点s[33].name;
                }
            }
            catch { }
            try
            {
                this.设计项目34 = Dto设计点s[34].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[34].name))
                {
                    this.设计内容34 = Dto设计点s[34].optionValue;
                }
                else
                {
                    this.设计内容34 = Dto设计点s[34].optionValue + ":" + Dto设计点s[34].name;
                }
            }
            catch { }
        }

        private void build尺寸(List<尺寸呈现dto> 尺寸呈现)
        {
            try { this.量体项目0 = 尺寸呈现[0].ITEM_NAME_CN; this.标准尺寸0 = 尺寸呈现[0].ITEM_FIT_VALUE.ToString(); this.成衣尺寸0 = 尺寸呈现[0].garmentSize.ToString(); this.客户量体值0 = 尺寸呈现[0].CUSTOMER_FIT_VALUE.ToString(); this.加减值0 = (尺寸呈现[0].IN_VALUE - 尺寸呈现[0].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目1 = 尺寸呈现[1].ITEM_NAME_CN; this.标准尺寸1 = 尺寸呈现[1].ITEM_FIT_VALUE.ToString(); this.成衣尺寸1 = 尺寸呈现[1].garmentSize.ToString(); this.客户量体值1 = 尺寸呈现[1].CUSTOMER_FIT_VALUE.ToString(); this.加减值1 = (尺寸呈现[1].IN_VALUE - 尺寸呈现[1].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目2 = 尺寸呈现[2].ITEM_NAME_CN; this.标准尺寸2 = 尺寸呈现[2].ITEM_FIT_VALUE.ToString(); this.成衣尺寸2 = 尺寸呈现[2].garmentSize.ToString(); this.客户量体值2 = 尺寸呈现[2].CUSTOMER_FIT_VALUE.ToString(); this.加减值2 = (尺寸呈现[2].IN_VALUE - 尺寸呈现[2].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目3 = 尺寸呈现[3].ITEM_NAME_CN; this.标准尺寸3 = 尺寸呈现[3].ITEM_FIT_VALUE.ToString(); this.成衣尺寸3 = 尺寸呈现[3].garmentSize.ToString(); this.客户量体值3 = 尺寸呈现[3].CUSTOMER_FIT_VALUE.ToString(); this.加减值3 = (尺寸呈现[3].IN_VALUE - 尺寸呈现[3].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目4 = 尺寸呈现[4].ITEM_NAME_CN; this.标准尺寸4 = 尺寸呈现[4].ITEM_FIT_VALUE.ToString(); this.成衣尺寸4 = 尺寸呈现[4].garmentSize.ToString(); this.客户量体值4 = 尺寸呈现[4].CUSTOMER_FIT_VALUE.ToString(); this.加减值4 = (尺寸呈现[4].IN_VALUE - 尺寸呈现[4].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目5 = 尺寸呈现[5].ITEM_NAME_CN; this.标准尺寸5 = 尺寸呈现[5].ITEM_FIT_VALUE.ToString(); this.成衣尺寸5 = 尺寸呈现[5].garmentSize.ToString(); this.客户量体值5 = 尺寸呈现[5].CUSTOMER_FIT_VALUE.ToString(); this.加减值5 = (尺寸呈现[5].IN_VALUE - 尺寸呈现[5].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目6 = 尺寸呈现[6].ITEM_NAME_CN; this.标准尺寸6 = 尺寸呈现[6].ITEM_FIT_VALUE.ToString(); this.成衣尺寸6 = 尺寸呈现[6].garmentSize.ToString(); this.客户量体值6 = 尺寸呈现[6].CUSTOMER_FIT_VALUE.ToString(); this.加减值6 = (尺寸呈现[6].IN_VALUE - 尺寸呈现[6].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目7 = 尺寸呈现[7].ITEM_NAME_CN; this.标准尺寸7 = 尺寸呈现[7].ITEM_FIT_VALUE.ToString(); this.成衣尺寸7 = 尺寸呈现[7].garmentSize.ToString(); this.客户量体值7 = 尺寸呈现[7].CUSTOMER_FIT_VALUE.ToString(); this.加减值7 = (尺寸呈现[7].IN_VALUE - 尺寸呈现[7].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目8 = 尺寸呈现[8].ITEM_NAME_CN; this.标准尺寸8 = 尺寸呈现[8].ITEM_FIT_VALUE.ToString(); this.成衣尺寸8 = 尺寸呈现[8].garmentSize.ToString(); this.客户量体值8 = 尺寸呈现[8].CUSTOMER_FIT_VALUE.ToString(); this.加减值8 = (尺寸呈现[8].IN_VALUE - 尺寸呈现[8].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目9 = 尺寸呈现[9].ITEM_NAME_CN; this.标准尺寸9 = 尺寸呈现[9].ITEM_FIT_VALUE.ToString(); this.成衣尺寸9 = 尺寸呈现[9].garmentSize.ToString(); this.客户量体值9 = 尺寸呈现[9].CUSTOMER_FIT_VALUE.ToString(); this.加减值9 = (尺寸呈现[9].IN_VALUE - 尺寸呈现[9].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目10 = 尺寸呈现[10].ITEM_NAME_CN; this.标准尺寸10 = 尺寸呈现[10].ITEM_FIT_VALUE.ToString(); this.成衣尺寸10 = 尺寸呈现[10].garmentSize.ToString(); this.客户量体值10 = 尺寸呈现[10].CUSTOMER_FIT_VALUE.ToString(); this.加减值10 = (尺寸呈现[10].IN_VALUE - 尺寸呈现[10].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目11 = 尺寸呈现[11].ITEM_NAME_CN; this.标准尺寸11 = 尺寸呈现[11].ITEM_FIT_VALUE.ToString(); this.成衣尺寸11 = 尺寸呈现[11].garmentSize.ToString(); this.客户量体值11 = 尺寸呈现[11].CUSTOMER_FIT_VALUE.ToString(); this.加减值11 = (尺寸呈现[11].IN_VALUE - 尺寸呈现[11].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目12 = 尺寸呈现[12].ITEM_NAME_CN; this.标准尺寸12 = 尺寸呈现[12].ITEM_FIT_VALUE.ToString(); this.成衣尺寸12 = 尺寸呈现[12].garmentSize.ToString(); this.客户量体值12 = 尺寸呈现[12].CUSTOMER_FIT_VALUE.ToString(); this.加减值12 = (尺寸呈现[12].IN_VALUE - 尺寸呈现[12].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目13 = 尺寸呈现[13].ITEM_NAME_CN; this.标准尺寸13 = 尺寸呈现[13].ITEM_FIT_VALUE.ToString(); this.成衣尺寸13 = 尺寸呈现[13].garmentSize.ToString(); this.客户量体值13 = 尺寸呈现[13].CUSTOMER_FIT_VALUE.ToString(); this.加减值13 = (尺寸呈现[13].IN_VALUE - 尺寸呈现[13].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目14 = 尺寸呈现[14].ITEM_NAME_CN; this.标准尺寸14 = 尺寸呈现[14].ITEM_FIT_VALUE.ToString(); this.成衣尺寸14 = 尺寸呈现[14].garmentSize.ToString(); this.客户量体值14 = 尺寸呈现[14].CUSTOMER_FIT_VALUE.ToString(); this.加减值14 = (尺寸呈现[14].IN_VALUE - 尺寸呈现[14].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目15 = 尺寸呈现[15].ITEM_NAME_CN; this.标准尺寸15 = 尺寸呈现[15].ITEM_FIT_VALUE.ToString(); this.成衣尺寸15 = 尺寸呈现[15].garmentSize.ToString(); this.客户量体值15 = 尺寸呈现[15].CUSTOMER_FIT_VALUE.ToString(); this.加减值15 = (尺寸呈现[15].IN_VALUE - 尺寸呈现[15].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目16 = 尺寸呈现[16].ITEM_NAME_CN; this.标准尺寸16 = 尺寸呈现[16].ITEM_FIT_VALUE.ToString(); this.成衣尺寸16 = 尺寸呈现[16].garmentSize.ToString(); this.客户量体值16 = 尺寸呈现[16].CUSTOMER_FIT_VALUE.ToString(); this.加减值16 = (尺寸呈现[16].IN_VALUE - 尺寸呈现[16].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目17 = 尺寸呈现[17].ITEM_NAME_CN; this.标准尺寸17 = 尺寸呈现[17].ITEM_FIT_VALUE.ToString(); this.成衣尺寸17 = 尺寸呈现[17].garmentSize.ToString(); this.客户量体值17 = 尺寸呈现[17].CUSTOMER_FIT_VALUE.ToString(); this.加减值17 = (尺寸呈现[17].IN_VALUE - 尺寸呈现[17].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目18 = 尺寸呈现[18].ITEM_NAME_CN; this.标准尺寸18 = 尺寸呈现[18].ITEM_FIT_VALUE.ToString(); this.成衣尺寸18 = 尺寸呈现[18].garmentSize.ToString(); this.客户量体值18 = 尺寸呈现[18].CUSTOMER_FIT_VALUE.ToString(); this.加减值18 = (尺寸呈现[18].IN_VALUE - 尺寸呈现[18].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目19 = 尺寸呈现[19].ITEM_NAME_CN; this.标准尺寸19 = 尺寸呈现[19].ITEM_FIT_VALUE.ToString(); this.成衣尺寸19 = 尺寸呈现[19].garmentSize.ToString(); this.客户量体值19 = 尺寸呈现[19].CUSTOMER_FIT_VALUE.ToString(); this.加减值19 = (尺寸呈现[19].IN_VALUE - 尺寸呈现[19].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目20 = 尺寸呈现[20].ITEM_NAME_CN; this.标准尺寸20 = 尺寸呈现[20].ITEM_FIT_VALUE.ToString(); this.成衣尺寸20 = 尺寸呈现[20].garmentSize.ToString(); this.客户量体值20 = 尺寸呈现[20].CUSTOMER_FIT_VALUE.ToString(); this.加减值20 = (尺寸呈现[20].IN_VALUE - 尺寸呈现[20].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目21 = 尺寸呈现[21].ITEM_NAME_CN; this.标准尺寸21 = 尺寸呈现[21].ITEM_FIT_VALUE.ToString(); this.成衣尺寸21 = 尺寸呈现[21].garmentSize.ToString(); this.客户量体值21 = 尺寸呈现[21].CUSTOMER_FIT_VALUE.ToString(); this.加减值21 = (尺寸呈现[21].IN_VALUE - 尺寸呈现[21].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目22 = 尺寸呈现[22].ITEM_NAME_CN; this.标准尺寸22 = 尺寸呈现[22].ITEM_FIT_VALUE.ToString(); this.成衣尺寸22 = 尺寸呈现[22].garmentSize.ToString(); this.客户量体值22 = 尺寸呈现[22].CUSTOMER_FIT_VALUE.ToString(); this.加减值22 = (尺寸呈现[22].IN_VALUE - 尺寸呈现[22].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目23 = 尺寸呈现[23].ITEM_NAME_CN; this.标准尺寸23 = 尺寸呈现[23].ITEM_FIT_VALUE.ToString(); this.成衣尺寸23 = 尺寸呈现[23].garmentSize.ToString(); this.客户量体值23 = 尺寸呈现[23].CUSTOMER_FIT_VALUE.ToString(); this.加减值23 = (尺寸呈现[23].IN_VALUE - 尺寸呈现[23].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目24 = 尺寸呈现[24].ITEM_NAME_CN; this.标准尺寸24 = 尺寸呈现[24].ITEM_FIT_VALUE.ToString(); this.成衣尺寸24 = 尺寸呈现[24].garmentSize.ToString(); this.客户量体值24 = 尺寸呈现[24].CUSTOMER_FIT_VALUE.ToString(); this.加减值24 = (尺寸呈现[24].IN_VALUE - 尺寸呈现[24].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目25 = 尺寸呈现[25].ITEM_NAME_CN; this.标准尺寸25 = 尺寸呈现[25].ITEM_FIT_VALUE.ToString(); this.成衣尺寸25 = 尺寸呈现[25].garmentSize.ToString(); this.客户量体值25 = 尺寸呈现[25].CUSTOMER_FIT_VALUE.ToString(); this.加减值25 = (尺寸呈现[25].IN_VALUE - 尺寸呈现[25].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目26 = 尺寸呈现[26].ITEM_NAME_CN; this.标准尺寸26 = 尺寸呈现[26].ITEM_FIT_VALUE.ToString(); this.成衣尺寸26 = 尺寸呈现[26].garmentSize.ToString(); this.客户量体值26 = 尺寸呈现[26].CUSTOMER_FIT_VALUE.ToString(); this.加减值26 = (尺寸呈现[26].IN_VALUE - 尺寸呈现[26].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目27 = 尺寸呈现[27].ITEM_NAME_CN; this.标准尺寸27 = 尺寸呈现[27].ITEM_FIT_VALUE.ToString(); this.成衣尺寸27 = 尺寸呈现[27].garmentSize.ToString(); this.客户量体值27 = 尺寸呈现[27].CUSTOMER_FIT_VALUE.ToString(); this.加减值27 = (尺寸呈现[27].IN_VALUE - 尺寸呈现[27].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目28 = 尺寸呈现[28].ITEM_NAME_CN; this.标准尺寸28 = 尺寸呈现[28].ITEM_FIT_VALUE.ToString(); this.成衣尺寸28 = 尺寸呈现[28].garmentSize.ToString(); this.客户量体值28 = 尺寸呈现[28].CUSTOMER_FIT_VALUE.ToString(); this.加减值28 = (尺寸呈现[28].IN_VALUE - 尺寸呈现[28].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目29 = 尺寸呈现[29].ITEM_NAME_CN; this.标准尺寸29 = 尺寸呈现[29].ITEM_FIT_VALUE.ToString(); this.成衣尺寸29 = 尺寸呈现[29].garmentSize.ToString(); this.客户量体值29 = 尺寸呈现[29].CUSTOMER_FIT_VALUE.ToString(); this.加减值29 = (尺寸呈现[29].IN_VALUE - 尺寸呈现[29].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目30 = 尺寸呈现[30].ITEM_NAME_CN; this.标准尺寸30 = 尺寸呈现[30].ITEM_FIT_VALUE.ToString(); this.成衣尺寸30 = 尺寸呈现[30].garmentSize.ToString(); this.客户量体值30 = 尺寸呈现[30].CUSTOMER_FIT_VALUE.ToString(); this.加减值30 = (尺寸呈现[30].IN_VALUE - 尺寸呈现[30].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目31 = 尺寸呈现[31].ITEM_NAME_CN; this.标准尺寸31 = 尺寸呈现[31].ITEM_FIT_VALUE.ToString(); this.成衣尺寸31 = 尺寸呈现[31].garmentSize.ToString(); this.客户量体值31 = 尺寸呈现[31].CUSTOMER_FIT_VALUE.ToString(); this.加减值31 = (尺寸呈现[31].IN_VALUE - 尺寸呈现[31].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目32 = 尺寸呈现[32].ITEM_NAME_CN; this.标准尺寸32 = 尺寸呈现[32].ITEM_FIT_VALUE.ToString(); this.成衣尺寸32 = 尺寸呈现[32].garmentSize.ToString(); this.客户量体值32 = 尺寸呈现[32].CUSTOMER_FIT_VALUE.ToString(); this.加减值32 = (尺寸呈现[32].IN_VALUE - 尺寸呈现[32].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目33 = 尺寸呈现[33].ITEM_NAME_CN; this.标准尺寸33 = 尺寸呈现[33].ITEM_FIT_VALUE.ToString(); this.成衣尺寸33 = 尺寸呈现[33].garmentSize.ToString(); this.客户量体值33 = 尺寸呈现[33].CUSTOMER_FIT_VALUE.ToString(); this.加减值33 = (尺寸呈现[33].IN_VALUE - 尺寸呈现[33].OUT_VALUE).ToString(); } catch { }
        }

        private void build客户体态(DTO客户体态 dto客户体态)
        {
            try { 
                this.体态0 = "性别";
                this.体态值0 = dto客户体态.性别;
            } catch { }
            try
            {
                this.体态1 = "年龄";
                this.体态值1 = dto客户体态.年龄;
            }catch { }
            try
            {
                this.体态2 = "身高";
                this.体态值2 = dto客户体态.身高;
            }catch { }
            try
            {
                this.体态3 = "体重";
                this.体态值3 = dto客户体态.体重;
            }
            catch { }
            try
            {
                this.体态4 = "肩型";
                this.体态值4 = dto客户体态.肩型;
            }
            catch { }
            try
            {
                this.体态5 = "背型";
                this.体态值5 = dto客户体态.背型;
            }
            catch { }
            try
            {
                this.体态6 = "腹型";
                this.体态值6 = dto客户体态.腹型;
            }
            catch { }
            try
            {
                this.体态7 = "体型";
                this.体态值7 = dto客户体态.体型;
            }
            catch { }
            #region 未修改前
            //try
            //{
            //    this.性别 = dto客户体态.性别;
            //}
            //catch { }
            //try
            //{
            //    this.腹型 = dto客户体态.腹型;
            //}
            //catch { }
            //try
            //{
            //    this.背型 = dto客户体态.背型;
            //}
            //catch { }
            //try
            //{
            //    this.体型 = dto客户体态.体型;
            //}
            //catch { }
            //try
            //{
            //    this.肩型 = dto客户体态.肩型;
            //}
            //catch { }
            //try
            //{
            //    this.体重 = dto客户体态.体重;
            //}
            //catch { }
            //try
            //{
            //    this.身高 = dto客户体态.身高;
            //}
            //catch { }
            //try
            //{
            //    this.年龄 = dto客户体态.年龄;
            //}
            //catch { }
            #endregion
        }

        #region 新订单纸打印
        public 订单导出DTO(OrderCommitDTO返回 OrderCommitDTO返回,Image picture款式,Image picture面料)
        {
            this.ORDER_ID = OrderCommitDTO返回.orderId;
            this.ORDER_NO = OrderCommitDTO返回.orderNo;
            this.ORDER_NUMBER = OrderCommitDTO返回.orderNumber.ToString();
            this.ORDER_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate).ToString();
            this.CUSTOM_NAME = OrderCommitDTO返回.customerName;
            this.SHOP_NAME = OrderCommitDTO返回.shopName;
            //this.ORDER_DUE_DATE = "";
            //this.ORDER_SHIPMENTS_DATE = "";
            this.STYLE_ID = OrderCommitDTO返回.styleId;
            this.REMARKS = OrderCommitDTO返回.remarks;

            this.STYLE_NAME_CN = OrderCommitDTO返回.styleNameCn;
            this.STYLE_MAKE_TYPE = OrderCommitDTO返回.styleMakeType;
            this.Style_FIT_CD = OrderCommitDTO返回.styleFitCd;
            this.MATERIAL_CODE = OrderCommitDTO返回.materialCode;
            this.MATERIAL_SPEC = OrderCommitDTO返回.width;
            //this.MATERIAL_STITCH = "";
            this.MATERIAL_STYLE = OrderCommitDTO返回.style;
            this.MATERIAL_NAME_CN = OrderCommitDTO返回.materialNameCn;
            this.MATERIAL_WEAVE = OrderCommitDTO返回.style; 
            this.picture款式 = picture款式;
            this.picture面料 = picture面料;
            this.refOrderNo = OrderCommitDTO返回.refOrderNo;
            try
            {
                this.STYLE_SIZE_CD 
                    = OrderCommitDTO返回.styleSizeCd.ToString().Replace("IGS_GROUP_SIZE-", "国际尺码组/").Replace("EGS_GROUP_SIZE-", "欧洲尺码组/");
            }
            catch { }
            
            this.build设计点新(OrderCommitDTO返回.dtoDesignPoints);
            this.build尺寸新(OrderCommitDTO返回.measureItemDTOS);
            this.build客户体态新(OrderCommitDTO返回.customerFitRDTOS);
        }
        private void build设计点新(List<DTODesignPoints设计点> Dto设计点input)
        {
            
            List <DTODesignPoints设计点> Dto设计点s = new List<DTODesignPoints设计点>();

            String str刺绣内容 = "";
            Boolean has刺绣 = false;
            foreach (DTODesignPoints设计点 DTODesignPoints in Dto设计点input)
            {
                //当刺绣内容itemCd不为空，找到刺绣有关的5个设计点
                if (
                    !String.IsNullOrEmpty(DTODesignPoints.itemValue) &&
                    !"4SMP".Equals(DTODesignPoints.itemValue) &&
                    !"4SMS".Equals(DTODesignPoints.itemValue) &&
                    !"4SMO".Equals(DTODesignPoints.itemValue) &&
                    !"4SMC".Equals(DTODesignPoints.itemValue) &&
                    !"4SMT".Equals(DTODesignPoints.itemValue)
                    )
                {
                    Dto设计点s.Add(DTODesignPoints);
                }
                //将刺绣内容添加到备注
                if (
                    "4SMP".Equals(DTODesignPoints.itemValue) ||
                    "4SMS".Equals(DTODesignPoints.itemValue) ||
                    "4SMO".Equals(DTODesignPoints.itemValue) 
                    )
                {
                    str刺绣内容 += "|" + DTODesignPoints.itemTypeNameCn + ":" + DTODesignPoints.name;
                }
                //刺绣颜色加色号
                else if ("4SMC".Equals(DTODesignPoints.itemValue))
                {
                    has刺绣 = true;
                    str刺绣内容 += "|" + DTODesignPoints.itemTypeNameCn + ":" + DTODesignPoints.optionValue + DTODesignPoints.name + "   ";
                }
                //除刺绣内容是optionValue，其他是name
                else if ("4SMT".Equals(DTODesignPoints.itemValue)) {
                    has刺绣 = true;
                    str刺绣内容 += "|" + DTODesignPoints.itemTypeNameCn + ":" + DTODesignPoints.optionValue + "   ";
                }
            }

            //当刺绣内容不为空，添加到备注，比如裤子无刺绣内容，无需添加到备注
            if (!String.IsNullOrEmpty(str刺绣内容)&&has刺绣)
            {
                this.REMARKS += "\n刺绣内容:" + str刺绣内容;
            }
            try
            {
                this.设计项目0 = Dto设计点s[0].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[0].name))
                {
                    if (String.IsNullOrEmpty(Dto设计点s[0].optionValue))
                    {

                    }
                    this.设计内容0 = Dto设计点s[0].optionValue;
                }
                else
                {
                    this.设计内容0 = Dto设计点s[0].optionValue + ":" + Dto设计点s[0].name;
                }
            }
            catch { }
            try
            {
                this.设计项目1 = Dto设计点s[1].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[1].name))
                {
                    this.设计内容1 = Dto设计点s[1].optionValue;
                }
                else
                {
                    this.设计内容1 = Dto设计点s[1].optionValue + ":" + Dto设计点s[1].name;
                }
            }
            catch { }
            try
            {
                this.设计项目2 = Dto设计点s[2].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[2].name))
                {
                    this.设计内容2 = Dto设计点s[2].optionValue;
                }
                else
                {
                    this.设计内容2 = Dto设计点s[2].optionValue + ":" + Dto设计点s[2].name;
                }
            }
            catch { }
            try
            {
                this.设计项目3 = Dto设计点s[3].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[3].name))
                {
                    this.设计内容3 = Dto设计点s[3].optionValue;
                }
                else
                {
                    this.设计内容3 = Dto设计点s[3].optionValue + ":" + Dto设计点s[3].name;
                }
            }
            catch { }
            try
            {
                this.设计项目4 = Dto设计点s[4].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[4].name))
                {
                    this.设计内容4 = Dto设计点s[4].optionValue;
                }
                else
                {
                    this.设计内容4 = Dto设计点s[4].optionValue + ":" + Dto设计点s[4].name;
                }
            }
            catch { }
            try
            {
                this.设计项目5 = Dto设计点s[5].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[5].name))
                {
                    this.设计内容5 = Dto设计点s[5].optionValue;
                }
                else
                {
                    this.设计内容5 = Dto设计点s[5].optionValue + ":" + Dto设计点s[5].name;
                }
            }
            catch { }
            try
            {
                this.设计项目6 = Dto设计点s[6].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[6].name))
                {
                    this.设计内容6 = Dto设计点s[6].optionValue;
                }
                else
                {
                    this.设计内容6 = Dto设计点s[6].optionValue + ":" + Dto设计点s[6].name;
                }
            }
            catch { }
            try
            {
                this.设计项目7 = Dto设计点s[7].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[7].name))
                {
                    this.设计内容7 = Dto设计点s[7].optionValue;
                }
                else
                {
                    this.设计内容7 = Dto设计点s[7].optionValue + ":" + Dto设计点s[7].name;
                }
            }
            catch { }
            try
            {
                this.设计项目8 = Dto设计点s[8].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[8].name))
                {
                    this.设计内容8 = Dto设计点s[8].optionValue;
                }
                else
                {
                    this.设计内容8 = Dto设计点s[8].optionValue + ":" + Dto设计点s[8].name;
                }
            }
            catch { }
            try
            {
                this.设计项目9 = Dto设计点s[9].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[9].name))
                {
                    this.设计内容9 = Dto设计点s[9].optionValue;
                }
                else
                {
                    this.设计内容9 = Dto设计点s[9].optionValue + ":" + Dto设计点s[9].name;
                }
            }
            catch { }
            try
            {
                this.设计项目10 = Dto设计点s[10].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[10].name))
                {
                    this.设计内容10 = Dto设计点s[10].optionValue;
                }
                else
                {
                    this.设计内容10 = Dto设计点s[10].optionValue + ":" + Dto设计点s[10].name;
                }
            }
            catch { }
            try
            {
                this.设计项目11 = Dto设计点s[11].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[11].name))
                {
                    this.设计内容11 = Dto设计点s[11].optionValue;
                }
                else
                {
                    this.设计内容11 = Dto设计点s[11].optionValue + ":" + Dto设计点s[11].name;
                }
            }
            catch { }
            try
            {
                this.设计项目12 = Dto设计点s[12].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[12].name))
                {
                    this.设计内容12 = Dto设计点s[12].optionValue;
                }
                else
                {
                    this.设计内容12 = Dto设计点s[12].optionValue + ":" + Dto设计点s[12].name;
                }
            }
            catch { }
            try
            {
                this.设计项目13 = Dto设计点s[13].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[13].name))
                {
                    this.设计内容13 = Dto设计点s[13].optionValue;
                }
                else
                {
                    this.设计内容13 = Dto设计点s[13].optionValue + ":" + Dto设计点s[13].name;
                }
            }
            catch { }
            try
            {
                this.设计项目14 = Dto设计点s[14].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[14].name))
                {
                    this.设计内容14 = Dto设计点s[14].optionValue;
                }
                else
                {
                    this.设计内容14 = Dto设计点s[14].optionValue + ":" + Dto设计点s[14].name;
                }
            }
            catch { }
            try
            {
                this.设计项目15 = Dto设计点s[15].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[15].name))
                {
                    this.设计内容15 = Dto设计点s[15].optionValue;
                }
                else
                {
                    this.设计内容15 = Dto设计点s[15].optionValue + ":" + Dto设计点s[15].name;
                }
            }
            catch { }
            try
            {
                this.设计项目16 = Dto设计点s[16].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[16].name))
                {
                    this.设计内容16 = Dto设计点s[16].optionValue;
                }
                else
                {
                    this.设计内容16 = Dto设计点s[16].optionValue + ":" + Dto设计点s[16].name;
                }
            }
            catch { }
            try
            {
                this.设计项目17 = Dto设计点s[17].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[17].name))
                {
                    this.设计内容17 = Dto设计点s[17].optionValue;
                }
                else
                {
                    this.设计内容17 = Dto设计点s[17].optionValue + ":" + Dto设计点s[17].name;
                }
            }
            catch { }
            try
            {
                this.设计项目18 = Dto设计点s[18].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[18].name))
                {
                    this.设计内容18 = Dto设计点s[18].optionValue;
                }
                else
                {
                    this.设计内容18 = Dto设计点s[18].optionValue + ":" + Dto设计点s[18].name;
                }
            }
            catch { }
            try
            {
                this.设计项目19 = Dto设计点s[19].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[19].name))
                {
                    this.设计内容19 = Dto设计点s[19].optionValue;
                }
                else
                {
                    this.设计内容19 = Dto设计点s[19].optionValue + ":" + Dto设计点s[19].name;
                }
            }
            catch { }
            try
            {
                this.设计项目20 = Dto设计点s[20].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[20].name))
                {
                    this.设计内容20 = Dto设计点s[20].optionValue;
                }
                else
                {
                    this.设计内容20 = Dto设计点s[20].optionValue + ":" + Dto设计点s[20].name;
                }
            }
            catch { }
            try
            {
                this.设计项目21 = Dto设计点s[21].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[21].name))
                {
                    this.设计内容21 = Dto设计点s[21].optionValue;
                }
                else
                {
                    this.设计内容21 = Dto设计点s[21].optionValue + ":" + Dto设计点s[21].name;
                }
            }
            catch { }
            try
            {
                this.设计项目22 = Dto设计点s[22].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[22].name))
                {
                    this.设计内容22 = Dto设计点s[22].optionValue;
                }
                else
                {
                    this.设计内容22 = Dto设计点s[22].optionValue + ":" + Dto设计点s[22].name;
                }
            }
            catch { }
            try
            {
                this.设计项目23 = Dto设计点s[23].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[23].name))
                {
                    this.设计内容23 = Dto设计点s[23].optionValue;
                }
                else
                {
                    this.设计内容23 = Dto设计点s[23].optionValue + ":" + Dto设计点s[23].name;
                }
            }
            catch { }
            try
            {
                this.设计项目24 = Dto设计点s[24].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[24].name))
                {
                    this.设计内容24 = Dto设计点s[24].optionValue;
                }
                else
                {
                    this.设计内容24 = Dto设计点s[24].optionValue + ":" + Dto设计点s[24].name;
                }
            }
            catch { }
            try
            {
                this.设计项目25 = Dto设计点s[25].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[25].name))
                {
                    this.设计内容25 = Dto设计点s[25].optionValue;
                }
                else
                {
                    this.设计内容25 = Dto设计点s[25].optionValue + ":" + Dto设计点s[25].name;
                }
            }
            catch { }
            try
            {
                this.设计项目26 = Dto设计点s[26].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[26].name))
                {
                    this.设计内容26 = Dto设计点s[26].optionValue;
                }
                else
                {
                    this.设计内容26 = Dto设计点s[26].optionValue + ":" + Dto设计点s[26].name;
                }
            }
            catch { }
            try
            {
                this.设计项目27 = Dto设计点s[27].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[27].name))
                {
                    this.设计内容27 = Dto设计点s[27].optionValue;
                }
                else
                {
                    this.设计内容27 = Dto设计点s[27].optionValue + ":" + Dto设计点s[27].name;
                }
            }
            catch { }
            try
            {
                this.设计项目28 = Dto设计点s[28].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[28].name))
                {
                    this.设计内容28 = Dto设计点s[28].optionValue;
                }
                else
                {
                    this.设计内容28 = Dto设计点s[28].optionValue + ":" + Dto设计点s[28].name;
                }
            }
            catch { }
            try
            {
                this.设计项目29 = Dto设计点s[29].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[29].name))
                {
                    this.设计内容29 = Dto设计点s[29].optionValue;
                }
                else
                {
                    this.设计内容29 = Dto设计点s[29].optionValue + ":" + Dto设计点s[29].name;
                }
            }
            catch { }
            try
            {
                this.设计项目30 = Dto设计点s[30].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[30].name))
                {
                    this.设计内容30 = Dto设计点s[30].optionValue;
                }
                else
                {
                    this.设计内容30 = Dto设计点s[30].optionValue + ":" + Dto设计点s[30].name;
                }
            }
            catch { }
            try
            {
                this.设计项目31 = Dto设计点s[31].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[31].name))
                {
                    this.设计内容31 = Dto设计点s[31].optionValue;
                }
                else
                {
                    this.设计内容31 = Dto设计点s[31].optionValue + ":" + Dto设计点s[31].name;
                }
            }
            catch { }
            try
            {
                this.设计项目32 = Dto设计点s[32].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[32].name))
                {
                    this.设计内容32 = Dto设计点s[32].optionValue;
                }
                else
                {
                    this.设计内容32 = Dto设计点s[32].optionValue + ":" + Dto设计点s[32].name;
                }
            }
            catch { }
            try
            {
                this.设计项目33 = Dto设计点s[33].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[33].name))
                {
                    this.设计内容33 = Dto设计点s[33].optionValue;
                }
                else
                {
                    this.设计内容33 = Dto设计点s[33].optionValue + ":" + Dto设计点s[33].name;
                }
            }
            catch { }
            try
            {
                this.设计项目34 = Dto设计点s[34].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[34].name))
                {
                    this.设计内容34 = Dto设计点s[34].optionValue;
                }
                else
                {
                    this.设计内容34 = Dto设计点s[34].optionValue + ":" + Dto设计点s[34].name;
                }
            }
            catch { }
        }
        private void build尺寸新(List<MeasureItemDTO> measureItemDTOS)
        {
            try { this.量体项目0 = measureItemDTOS[0].itemNameCn; this.标准尺寸0 = measureItemDTOS[0].itemFitValue.ToString(); this.成衣尺寸0 = measureItemDTOS[0].garmentSize.ToString(); this.客户量体值0 = measureItemDTOS[0].customerFitValue.ToString(); this.加减值0 = (measureItemDTOS[0].inValue - measureItemDTOS[0].outValue).ToString(); } catch { }
            try { this.量体项目1 = measureItemDTOS[1].itemNameCn; this.标准尺寸1 = measureItemDTOS[1].itemFitValue.ToString(); this.成衣尺寸1 = measureItemDTOS[1].garmentSize.ToString(); this.客户量体值1 = measureItemDTOS[1].customerFitValue.ToString(); this.加减值1 = (measureItemDTOS[1].inValue - measureItemDTOS[1].outValue).ToString(); } catch { }
            try { this.量体项目2 = measureItemDTOS[2].itemNameCn; this.标准尺寸2 = measureItemDTOS[2].itemFitValue.ToString(); this.成衣尺寸2 = measureItemDTOS[2].garmentSize.ToString(); this.客户量体值2 = measureItemDTOS[2].customerFitValue.ToString(); this.加减值2 = (measureItemDTOS[2].inValue - measureItemDTOS[2].outValue).ToString(); } catch { }
            try { this.量体项目3 = measureItemDTOS[3].itemNameCn; this.标准尺寸3 = measureItemDTOS[3].itemFitValue.ToString(); this.成衣尺寸3 = measureItemDTOS[3].garmentSize.ToString(); this.客户量体值3 = measureItemDTOS[3].customerFitValue.ToString(); this.加减值3 = (measureItemDTOS[3].inValue - measureItemDTOS[3].outValue).ToString(); } catch { }
            try { this.量体项目4 = measureItemDTOS[4].itemNameCn; this.标准尺寸4 = measureItemDTOS[4].itemFitValue.ToString(); this.成衣尺寸4 = measureItemDTOS[4].garmentSize.ToString(); this.客户量体值4 = measureItemDTOS[4].customerFitValue.ToString(); this.加减值4 = (measureItemDTOS[4].inValue - measureItemDTOS[4].outValue).ToString(); } catch { }
            try { this.量体项目5 = measureItemDTOS[5].itemNameCn; this.标准尺寸5 = measureItemDTOS[5].itemFitValue.ToString(); this.成衣尺寸5 = measureItemDTOS[5].garmentSize.ToString(); this.客户量体值5 = measureItemDTOS[5].customerFitValue.ToString(); this.加减值5 = (measureItemDTOS[5].inValue - measureItemDTOS[5].outValue).ToString(); } catch { }
            try { this.量体项目6 = measureItemDTOS[6].itemNameCn; this.标准尺寸6 = measureItemDTOS[6].itemFitValue.ToString(); this.成衣尺寸6 = measureItemDTOS[6].garmentSize.ToString(); this.客户量体值6 = measureItemDTOS[6].customerFitValue.ToString(); this.加减值6 = (measureItemDTOS[6].inValue - measureItemDTOS[6].outValue).ToString(); } catch { }
            try { this.量体项目7 = measureItemDTOS[7].itemNameCn; this.标准尺寸7 = measureItemDTOS[7].itemFitValue.ToString(); this.成衣尺寸7 = measureItemDTOS[7].garmentSize.ToString(); this.客户量体值7 = measureItemDTOS[7].customerFitValue.ToString(); this.加减值7 = (measureItemDTOS[7].inValue - measureItemDTOS[7].outValue).ToString(); } catch { }
            try { this.量体项目8 = measureItemDTOS[8].itemNameCn; this.标准尺寸8 = measureItemDTOS[8].itemFitValue.ToString(); this.成衣尺寸8 = measureItemDTOS[8].garmentSize.ToString(); this.客户量体值8 = measureItemDTOS[8].customerFitValue.ToString(); this.加减值8 = (measureItemDTOS[8].inValue - measureItemDTOS[8].outValue).ToString(); } catch { }
            try { this.量体项目9 = measureItemDTOS[9].itemNameCn; this.标准尺寸9 = measureItemDTOS[9].itemFitValue.ToString(); this.成衣尺寸9 = measureItemDTOS[9].garmentSize.ToString(); this.客户量体值9 = measureItemDTOS[9].customerFitValue.ToString(); this.加减值9 = (measureItemDTOS[9].inValue - measureItemDTOS[9].outValue).ToString(); } catch { }
            try { this.量体项目10 = measureItemDTOS[10].itemNameCn; this.标准尺寸10 = measureItemDTOS[10].itemFitValue.ToString(); this.成衣尺寸10 = measureItemDTOS[10].garmentSize.ToString(); this.客户量体值10 = measureItemDTOS[10].customerFitValue.ToString(); this.加减值10 = (measureItemDTOS[10].inValue - measureItemDTOS[10].outValue).ToString(); } catch { }
            try { this.量体项目11 = measureItemDTOS[11].itemNameCn; this.标准尺寸11 = measureItemDTOS[11].itemFitValue.ToString(); this.成衣尺寸11 = measureItemDTOS[11].garmentSize.ToString(); this.客户量体值11 = measureItemDTOS[11].customerFitValue.ToString(); this.加减值11 = (measureItemDTOS[11].inValue - measureItemDTOS[11].outValue).ToString(); } catch { }
            try { this.量体项目12 = measureItemDTOS[12].itemNameCn; this.标准尺寸12 = measureItemDTOS[12].itemFitValue.ToString(); this.成衣尺寸12 = measureItemDTOS[12].garmentSize.ToString(); this.客户量体值12 = measureItemDTOS[12].customerFitValue.ToString(); this.加减值12 = (measureItemDTOS[12].inValue - measureItemDTOS[12].outValue).ToString(); } catch { }
            try { this.量体项目13 = measureItemDTOS[13].itemNameCn; this.标准尺寸13 = measureItemDTOS[13].itemFitValue.ToString(); this.成衣尺寸13 = measureItemDTOS[13].garmentSize.ToString(); this.客户量体值13 = measureItemDTOS[13].customerFitValue.ToString(); this.加减值13 = (measureItemDTOS[13].inValue - measureItemDTOS[13].outValue).ToString(); } catch { }
            try { this.量体项目14 = measureItemDTOS[14].itemNameCn; this.标准尺寸14 = measureItemDTOS[14].itemFitValue.ToString(); this.成衣尺寸14 = measureItemDTOS[14].garmentSize.ToString(); this.客户量体值14 = measureItemDTOS[14].customerFitValue.ToString(); this.加减值14 = (measureItemDTOS[14].inValue - measureItemDTOS[14].outValue).ToString(); } catch { }
            try { this.量体项目15 = measureItemDTOS[15].itemNameCn; this.标准尺寸15 = measureItemDTOS[15].itemFitValue.ToString(); this.成衣尺寸15 = measureItemDTOS[15].garmentSize.ToString(); this.客户量体值15 = measureItemDTOS[15].customerFitValue.ToString(); this.加减值15 = (measureItemDTOS[15].inValue - measureItemDTOS[15].outValue).ToString(); } catch { }
            try { this.量体项目16 = measureItemDTOS[16].itemNameCn; this.标准尺寸16 = measureItemDTOS[16].itemFitValue.ToString(); this.成衣尺寸16 = measureItemDTOS[16].garmentSize.ToString(); this.客户量体值16 = measureItemDTOS[16].customerFitValue.ToString(); this.加减值16 = (measureItemDTOS[16].inValue - measureItemDTOS[16].outValue).ToString(); } catch { }
            try { this.量体项目17 = measureItemDTOS[17].itemNameCn; this.标准尺寸17 = measureItemDTOS[17].itemFitValue.ToString(); this.成衣尺寸17 = measureItemDTOS[17].garmentSize.ToString(); this.客户量体值17 = measureItemDTOS[17].customerFitValue.ToString(); this.加减值17 = (measureItemDTOS[17].inValue - measureItemDTOS[17].outValue).ToString(); } catch { }
            try { this.量体项目18 = measureItemDTOS[18].itemNameCn; this.标准尺寸18 = measureItemDTOS[18].itemFitValue.ToString(); this.成衣尺寸18 = measureItemDTOS[18].garmentSize.ToString(); this.客户量体值18 = measureItemDTOS[18].customerFitValue.ToString(); this.加减值18 = (measureItemDTOS[18].inValue - measureItemDTOS[18].outValue).ToString(); } catch { }
            try { this.量体项目19 = measureItemDTOS[19].itemNameCn; this.标准尺寸19 = measureItemDTOS[19].itemFitValue.ToString(); this.成衣尺寸19 = measureItemDTOS[19].garmentSize.ToString(); this.客户量体值19 = measureItemDTOS[19].customerFitValue.ToString(); this.加减值19 = (measureItemDTOS[19].inValue - measureItemDTOS[19].outValue).ToString(); } catch { }
            try { this.量体项目20 = measureItemDTOS[20].itemNameCn; this.标准尺寸20 = measureItemDTOS[20].itemFitValue.ToString(); this.成衣尺寸20 = measureItemDTOS[20].garmentSize.ToString(); this.客户量体值20 = measureItemDTOS[20].customerFitValue.ToString(); this.加减值20 = (measureItemDTOS[20].inValue - measureItemDTOS[20].outValue).ToString(); } catch { }
            try { this.量体项目21 = measureItemDTOS[21].itemNameCn; this.标准尺寸21 = measureItemDTOS[21].itemFitValue.ToString(); this.成衣尺寸21 = measureItemDTOS[21].garmentSize.ToString(); this.客户量体值21 = measureItemDTOS[21].customerFitValue.ToString(); this.加减值21 = (measureItemDTOS[21].inValue - measureItemDTOS[21].outValue).ToString(); } catch { }
            try { this.量体项目22 = measureItemDTOS[22].itemNameCn; this.标准尺寸22 = measureItemDTOS[22].itemFitValue.ToString(); this.成衣尺寸22 = measureItemDTOS[22].garmentSize.ToString(); this.客户量体值22 = measureItemDTOS[22].customerFitValue.ToString(); this.加减值22 = (measureItemDTOS[22].inValue - measureItemDTOS[22].outValue).ToString(); } catch { }
            try { this.量体项目23 = measureItemDTOS[23].itemNameCn; this.标准尺寸23 = measureItemDTOS[23].itemFitValue.ToString(); this.成衣尺寸23 = measureItemDTOS[23].garmentSize.ToString(); this.客户量体值23 = measureItemDTOS[23].customerFitValue.ToString(); this.加减值23 = (measureItemDTOS[23].inValue - measureItemDTOS[23].outValue).ToString(); } catch { }
            try { this.量体项目24 = measureItemDTOS[24].itemNameCn; this.标准尺寸24 = measureItemDTOS[24].itemFitValue.ToString(); this.成衣尺寸24 = measureItemDTOS[24].garmentSize.ToString(); this.客户量体值24 = measureItemDTOS[24].customerFitValue.ToString(); this.加减值24 = (measureItemDTOS[24].inValue - measureItemDTOS[24].outValue).ToString(); } catch { }
            try { this.量体项目25 = measureItemDTOS[25].itemNameCn; this.标准尺寸25 = measureItemDTOS[25].itemFitValue.ToString(); this.成衣尺寸25 = measureItemDTOS[25].garmentSize.ToString(); this.客户量体值25 = measureItemDTOS[25].customerFitValue.ToString(); this.加减值25 = (measureItemDTOS[25].inValue - measureItemDTOS[25].outValue).ToString(); } catch { }
            try { this.量体项目26 = measureItemDTOS[26].itemNameCn; this.标准尺寸26 = measureItemDTOS[26].itemFitValue.ToString(); this.成衣尺寸26 = measureItemDTOS[26].garmentSize.ToString(); this.客户量体值26 = measureItemDTOS[26].customerFitValue.ToString(); this.加减值26 = (measureItemDTOS[26].inValue - measureItemDTOS[26].outValue).ToString(); } catch { }
            try { this.量体项目27 = measureItemDTOS[27].itemNameCn; this.标准尺寸27 = measureItemDTOS[27].itemFitValue.ToString(); this.成衣尺寸27 = measureItemDTOS[27].garmentSize.ToString(); this.客户量体值27 = measureItemDTOS[27].customerFitValue.ToString(); this.加减值27 = (measureItemDTOS[27].inValue - measureItemDTOS[27].outValue).ToString(); } catch { }
            try { this.量体项目28 = measureItemDTOS[28].itemNameCn; this.标准尺寸28 = measureItemDTOS[28].itemFitValue.ToString(); this.成衣尺寸28 = measureItemDTOS[28].garmentSize.ToString(); this.客户量体值28 = measureItemDTOS[28].customerFitValue.ToString(); this.加减值28 = (measureItemDTOS[28].inValue - measureItemDTOS[28].outValue).ToString(); } catch { }
            try { this.量体项目29 = measureItemDTOS[29].itemNameCn; this.标准尺寸29 = measureItemDTOS[29].itemFitValue.ToString(); this.成衣尺寸29 = measureItemDTOS[29].garmentSize.ToString(); this.客户量体值29 = measureItemDTOS[29].customerFitValue.ToString(); this.加减值29 = (measureItemDTOS[29].inValue - measureItemDTOS[29].outValue).ToString(); } catch { }
            try { this.量体项目30 = measureItemDTOS[30].itemNameCn; this.标准尺寸30 = measureItemDTOS[30].itemFitValue.ToString(); this.成衣尺寸30 = measureItemDTOS[30].garmentSize.ToString(); this.客户量体值30 = measureItemDTOS[30].customerFitValue.ToString(); this.加减值30 = (measureItemDTOS[30].inValue - measureItemDTOS[30].outValue).ToString(); } catch { }
            try { this.量体项目31 = measureItemDTOS[31].itemNameCn; this.标准尺寸31 = measureItemDTOS[31].itemFitValue.ToString(); this.成衣尺寸31 = measureItemDTOS[31].garmentSize.ToString(); this.客户量体值31 = measureItemDTOS[31].customerFitValue.ToString(); this.加减值31 = (measureItemDTOS[31].inValue - measureItemDTOS[31].outValue).ToString(); } catch { }
            try { this.量体项目32 = measureItemDTOS[32].itemNameCn; this.标准尺寸32 = measureItemDTOS[32].itemFitValue.ToString(); this.成衣尺寸32 = measureItemDTOS[32].garmentSize.ToString(); this.客户量体值32 = measureItemDTOS[32].customerFitValue.ToString(); this.加减值32 = (measureItemDTOS[32].inValue - measureItemDTOS[32].outValue).ToString(); } catch { }
            try { this.量体项目33 = measureItemDTOS[33].itemNameCn; this.标准尺寸33 = measureItemDTOS[33].itemFitValue.ToString(); this.成衣尺寸33 = measureItemDTOS[33].garmentSize.ToString(); this.客户量体值33 = measureItemDTOS[33].customerFitValue.ToString(); this.加减值33 = (measureItemDTOS[33].inValue - measureItemDTOS[33].outValue).ToString(); } catch { }
        }
        public void build客户体态新(List<CustomerFitRDTO量体值> CustomerFitRDTO量体值)
        {
            try
            {
                this.体态0 = CustomerFitRDTO量体值[0].propertyNameCn;
                if (CustomerFitRDTO量体值[0].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[0].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值0 = CustomerFitRDTO量体值[0].fitValue;
                }
                else
                {
                    this.体态值0 = CustomerFitRDTO量体值[0].itemNameCn;
                }
                
            }
            catch { }
            try
            {
                this.体态1 = CustomerFitRDTO量体值[1].propertyNameCn;
                if (CustomerFitRDTO量体值[1].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[1].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值1 = CustomerFitRDTO量体值[1].fitValue;
                }
                else
                {
                    this.体态值1 = CustomerFitRDTO量体值[1].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态2 = CustomerFitRDTO量体值[2].propertyNameCn;
                if (CustomerFitRDTO量体值[2].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[2].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值2 = CustomerFitRDTO量体值[2].fitValue;
                }
                else
                {
                    this.体态值2 = CustomerFitRDTO量体值[2].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态3 = CustomerFitRDTO量体值[3].propertyNameCn;
                if (CustomerFitRDTO量体值[3].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[3].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值3 = CustomerFitRDTO量体值[3].fitValue;
                }
                else
                {
                    this.体态值3 = CustomerFitRDTO量体值[3].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态4 = CustomerFitRDTO量体值[4].propertyNameCn;
                if (CustomerFitRDTO量体值[4].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[4].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值4 = CustomerFitRDTO量体值[4].fitValue;
                }
                else
                {
                    this.体态值4 = CustomerFitRDTO量体值[4].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态5 = CustomerFitRDTO量体值[5].propertyNameCn;
                if (CustomerFitRDTO量体值[5].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[5].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值5 = CustomerFitRDTO量体值[5].fitValue;
                }
                else
                {
                    this.体态值5 = CustomerFitRDTO量体值[5].itemNameCn;
                }
            }
            catch { }
            
            try
            {
                this.体态6 = CustomerFitRDTO量体值[6].propertyNameCn;
                if (CustomerFitRDTO量体值[6].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[6].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值6 = CustomerFitRDTO量体值[6].fitValue;
                }
                else
                {
                    this.体态值6 = CustomerFitRDTO量体值[6].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态7 = CustomerFitRDTO量体值[7].propertyNameCn;
                if (CustomerFitRDTO量体值[7].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[7].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值7 = CustomerFitRDTO量体值[7].fitValue;
                }
                else
                {
                    this.体态值7 = CustomerFitRDTO量体值[7].itemNameCn;
                }
            }
            catch { }
        }

        public void build客户体态新新(List<CustomerFitRDTO量体值> CustomerFitRDTO量体值)
        {
            try
            {
                this.体态2 = CustomerFitRDTO量体值[0].propertyNameCn;
                if (CustomerFitRDTO量体值[0].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[0].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值2 = CustomerFitRDTO量体值[0].fitValue;
                }
                else
                {
                    this.体态值2 = CustomerFitRDTO量体值[0].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态3 = CustomerFitRDTO量体值[1].propertyNameCn;
                if (CustomerFitRDTO量体值[1].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[1].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值3 = CustomerFitRDTO量体值[1].fitValue;
                }
                else
                {
                    this.体态值3 = CustomerFitRDTO量体值[1].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态4 = CustomerFitRDTO量体值[2].propertyNameCn;
                if (CustomerFitRDTO量体值[2].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[2].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值4 = CustomerFitRDTO量体值[2].fitValue;
                }
                else
                {
                    this.体态值4 = CustomerFitRDTO量体值[2].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态5 = CustomerFitRDTO量体值[3].propertyNameCn;
                if (CustomerFitRDTO量体值[3].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[3].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值5 = CustomerFitRDTO量体值[3].fitValue;
                }
                else
                {
                    this.体态值5 = CustomerFitRDTO量体值[3].itemNameCn;
                }
            }
            catch { }

            try
            {
                this.体态6 = CustomerFitRDTO量体值[4].propertyNameCn;
                if (CustomerFitRDTO量体值[4].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[4].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值6 = CustomerFitRDTO量体值[4].fitValue;
                }
                else
                {
                    this.体态值6 = CustomerFitRDTO量体值[4].itemNameCn;
                }
            }
            catch { }
            try
            {
                this.体态7 = CustomerFitRDTO量体值[5].propertyNameCn;
                if (CustomerFitRDTO量体值[5].itemValue.Equals("FITMT_ITEM_09")
                   || CustomerFitRDTO量体值[5].itemValue.Equals("FITMT_ITEM_10"))
                {
                    this.体态值7 = CustomerFitRDTO量体值[5].fitValue;
                }
                else
                {
                    this.体态值7 = CustomerFitRDTO量体值[5].itemNameCn;
                }
            }
            catch { }
        }
        #endregion
        #region 拆批打印
        public 订单导出DTO(OrderCommitDTO返回 OrderCommitDTO返回, Image picture款式, Image picture面料,String batchNo,Double batchQuantiry,Boolean urgentFlg)
        {
            this.batchNo = batchNo;
            this.ORDER_ID = OrderCommitDTO返回.orderId;
            this.ORDER_NO = OrderCommitDTO返回.orderNo;
            this.ORDER_NUMBER = batchQuantiry.ToString();
            this.ORDER_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate).ToString();
            this.CUSTOM_NAME = OrderCommitDTO返回.customerName;
            if ("46".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "坚山";
            }
            else if ("49".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "美国坚山";
            }
            else if ("52".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "上海坚山";
            }
            else
            {
                this.SHOP_NAME = OrderCommitDTO返回.shopName;
            }
            this.kashiyamaOrderNo = OrderCommitDTO返回.kashiyamaOrderNo;
            this.salesType = OrderCommitDTO返回.salesType;
            this.salesChannel = OrderCommitDTO返回.salesChannel;
            if ("客户套号".Equals(OrderCommitDTO返回.salesType))
            {
                this.CUSTOM_NAME = "";
            }
            if (urgentFlg)
            {
                this.urgentFlgName = "加急";
                this.ORDER_DUE_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate.AddDays(3)).ToString();
            }
            else
            {
                this.ORDER_DUE_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate.AddDays(7)).ToString();
            }
            //this.ORDER_SHIPMENTS_DATE = "";
            this.STYLE_ID = OrderCommitDTO返回.styleId;
            this.REMARKS = OrderCommitDTO返回.remarks;

            this.STYLE_NAME_CN = OrderCommitDTO返回.styleNameCn;
            this.STYLE_MAKE_TYPE = OrderCommitDTO返回.styleMakeType;
            this.Style_FIT_CD = OrderCommitDTO返回.styleFitCd;
            this.MATERIAL_CODE = OrderCommitDTO返回.materialCode;
            this.MATERIAL_SPEC = OrderCommitDTO返回.width;
            //this.MATERIAL_STITCH = "";
            this.MATERIAL_STYLE = OrderCommitDTO返回.style;
            this.MATERIAL_NAME_CN = OrderCommitDTO返回.materialNameCn;
            this.MATERIAL_WEAVE = OrderCommitDTO返回.style;
            this.picture款式 = picture款式;
            this.picture面料 = picture面料;
            this.refOrderNo = OrderCommitDTO返回.refOrderNo;
            try
            {
                this.STYLE_SIZE_CD
                    = OrderCommitDTO返回.styleSizeCd.ToString().Replace("IGS_GROUP_SIZE-", "国际尺码组/").Replace("EGS_GROUP_SIZE-", "欧洲尺码组/");
            }
            catch { }
            List<MeasureItemDTO> 订单纸尺寸MeasureItemDTOs = new List<MeasureItemDTO>();
            foreach (MeasureItemDTO item in OrderCommitDTO返回.measureItemDTOS)
            {
                if (item.hasHalf)
                {
                    订单纸尺寸MeasureItemDTOs.Add(
                        new MeasureItemDTO(
                            item.itemCd,
                            item.itemValue,
                            item.propertyValue,
                            item.fitValue,
                            item.leastReasonable,
                            item.maxReasonable,
                            "1/2" + item.itemNameCn,
                            item.itemFitValue / 2,
                            item.garmentSize / 2,
                            item.inValue / 2,
                            item.outValue / 2,
                            item.customerFitValue / 2
                            )
                        );
                }
                else
                {
                    订单纸尺寸MeasureItemDTOs.Add(
                        new MeasureItemDTO(
                            item.itemCd,
                            item.itemValue,
                            item.propertyValue,
                            item.fitValue,
                            item.leastReasonable,
                            item.maxReasonable,
                            item.itemNameCn,
                            item.itemFitValue,
                            item.garmentSize,
                            item.inValue,
                            item.outValue,
                            item.customerFitValue
                            )
                        );
                }
            }
            //this.build尺寸新(OrderCommitDTO返回.measureItemDTOS);
            this.build尺寸新(订单纸尺寸MeasureItemDTOs);
            this.build设计点新(OrderCommitDTO返回.dtoDesignPoints);
            this.build客户体态新(OrderCommitDTO返回.customerFitRDTOS);
        }
        public 订单导出DTO(OrderCommitDTO返回 OrderCommitDTO返回, Image picture款式, Image picture面料, String batchNo, Double batchQuantiry, Boolean urgentFlg, SaleOrderQueryDTO saleOrderQueryDTO)
        {
            this.batchNo = batchNo;
            this.ORDER_ID = OrderCommitDTO返回.orderId;
            this.ORDER_NO = OrderCommitDTO返回.orderNo;
            this.ORDER_NUMBER = batchQuantiry.CompareTo(0.0)<1? OrderCommitDTO返回.orderNumber.ToString(): batchQuantiry.ToString();
            this.ORDER_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate).ToString();
            this.CUSTOM_NAME = OrderCommitDTO返回.customerName;
            if ("46".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "坚山";
            }
            else if ("49".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "美国坚山";
            }
            else if ("52".Equals(OrderCommitDTO返回.shopId))
            {
                this.SHOP_NAME = "上海坚山";
            }
            else
            {
                this.SHOP_NAME = OrderCommitDTO返回.shopName;
            }
            this.kashiyamaOrderNo = OrderCommitDTO返回.kashiyamaOrderNo;
            this.salesType = OrderCommitDTO返回.salesType;
            this.salesChannel = OrderCommitDTO返回.salesChannel;
            this.storeName = saleOrderQueryDTO.storeName;
            this.assistantName = saleOrderQueryDTO.assistant;
            if ("客户套号".Equals(OrderCommitDTO返回.salesType))
            {
                this.CUSTOM_NAME = "";
            }
            if (urgentFlg)
            {
                this.urgentFlgName = "加急";
                this.ORDER_DUE_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate.AddDays(3)).ToString();
            }
            else
            {
                this.ORDER_DUE_DATE = Convert.ToDateTime(OrderCommitDTO返回.orderDate.AddDays(7)).ToString();
            }
            //this.ORDER_SHIPMENTS_DATE = "";
            this.STYLE_ID = OrderCommitDTO返回.styleId;
            this.REMARKS = OrderCommitDTO返回.remarks;

            this.STYLE_NAME_CN = OrderCommitDTO返回.styleNameCn;
            this.STYLE_MAKE_TYPE = OrderCommitDTO返回.styleMakeType;
            this.Style_FIT_CD = OrderCommitDTO返回.styleFitCd;
            this.MATERIAL_CODE = OrderCommitDTO返回.materialCode;
            this.MATERIAL_SPEC = OrderCommitDTO返回.width;
            //this.MATERIAL_STITCH = "";
            this.MATERIAL_STYLE = OrderCommitDTO返回.style;
            this.MATERIAL_NAME_CN = OrderCommitDTO返回.materialNameCn;
            this.MATERIAL_WEAVE = OrderCommitDTO返回.style;
            this.picture款式 = picture款式;
            this.picture面料 = picture面料;
            this.refOrderNo = OrderCommitDTO返回.refOrderNo;
            try
            {
                this.STYLE_SIZE_CD
                    = OrderCommitDTO返回.styleSizeCd.ToString().Replace("IGS_GROUP_SIZE-", "国际尺码组/").Replace("EGS_GROUP_SIZE-", "欧洲尺码组/");
            }
            catch { }
            List<MeasureItemDTO> 订单纸尺寸MeasureItemDTOs = new List<MeasureItemDTO>();
            foreach (MeasureItemDTO item in OrderCommitDTO返回.measureItemDTOS)
            {
                if (item.hasHalf)
                {
                    订单纸尺寸MeasureItemDTOs.Add(
                        new MeasureItemDTO(
                            item.itemCd,
                            item.itemValue,
                            item.propertyValue,
                            item.fitValue,
                            item.leastReasonable,
                            item.maxReasonable,
                            "1/2" + item.itemNameCn,
                            item.itemFitValue / 2,
                            item.garmentSize / 2,
                            item.inValue / 2,
                            item.outValue / 2,
                            item.customerFitValue / 2
                            )
                        );
                }
                else
                {
                    订单纸尺寸MeasureItemDTOs.Add(
                        new MeasureItemDTO(
                            item.itemCd,
                            item.itemValue,
                            item.propertyValue,
                            item.fitValue,
                            item.leastReasonable,
                            item.maxReasonable,
                            item.itemNameCn,
                            item.itemFitValue,
                            item.garmentSize,
                            item.inValue,
                            item.outValue,
                            item.customerFitValue
                            )
                        );
                }
            }
            //this.build尺寸新(OrderCommitDTO返回.measureItemDTOS);
            this.build尺寸新(订单纸尺寸MeasureItemDTOs);
            this.build设计点新(OrderCommitDTO返回.dtoDesignPoints);
            this.build客户体态新(OrderCommitDTO返回.customerFitRDTOS);
        }
        #endregion
        public 订单导出DTO build(Double wipQuantity)
        {
            this.wipQuantity = wipQuantity.ToString();
            return this;
        }
    }

}
